@import "global";



#article {
    font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans;;
    color: $article-text;
}

#article a {
    color: #1abc9c;
    border-bottom: 1px solid #1abc9c;
}

#article a:hover {
    border-bottom-color: #555;
    color: #555;
    text-decoration: none;
}

#article p {
    @include center;
    @include default-text-width;
    margin-top: 1.375em;
    margin-bottom: 1.375em;
    overflow-x: hidden;
}

.img-title {
    margin-top: -1.375em!important;
    text-align: center;
    color: #1abc9c;
    border-bottom: 1px solid #1abc9c;
}

.hassubimage {
    @include center;
    left: 0;
    right: 0;
    width: $default-text-width-em + 20em!important;
}

#article h1, h2, h3, h4, h5, h6 {
    @include center;
    font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
    font-weight: 100;
    color: #000;
    line-height: 1.35;
}

#article h1 {
    font-size: 2.250em;
    width: $default-text-width-em / 2.250em * 1em;
}

#article h2 {
    font-size: 1.313em;
    width: $default-text-width-em / 1.313em * 1em;
}

#article h3 {
    font-size: 1em;
    width: $default-text-width-em / 1em * 1em;
}

#article h4 {
    font-size: 0.875em;
    width: $default-text-width-em / 0.875em * 1em;
}

#article h5 {
    font-size: 0.8em;
    width: $default-text-width-em / 0.8em * 1em;
}

ul {
    @include center;
    @include default-text-width;
}

ol {
    @include center;
    @include default-text-width;
    list-style-type: decimal;
    type: "1";
}

#article a:hover {
    border-bottom: 0.063em solid #e33;
}

#footer {
    margin-top: 3.125em;
    margin: 3.125em auto 6.250em auto;
}

#more-words {
    @include center;
    width: $default-text-width-em / 1.563em * 1em;
    font-size: 1.563em;
    font-family: Montserrat;
    color: $fancy-link-color;
    letter-spacing: -2;
    font-weight: 700;
    padding: 0.250em;
    text-align: center;
}

#more-words:hover {
    color: $fancy-link-hover-color;
}

.code-wrapper {
    @include center;
    @include default-element-width;
    font-family: Courier, 'Courier New', monospace;
}

.lang-label {
    position: relative;
    left: 32em;
    bottom: -1.5em;
    font-family: Courier, 'Courier New', monospace;
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    color: rgba(0,0,0,.6);
}

.lang-label:hover::before { 
    content: "</> "; color: #5BBD72; 
}

.lang-label:hover { 
    color: #5BBD72;
}

.highlight {
    margin: 0;
    font-size: 0.875em;
    color: #333;
    line-height: 1.3em;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd; 
    padding: 1em;
}

pre {
    overflow-x: hidden;
    white-space: pre-wrap;
    display: block;
}

code {
    background: #fafafd;
    font-family: Courier, 'Courier New', monospace;;
    padding: 0.063em;
    border: 0.063em solid #dedede;
}

p code {
    font-size: 0.9em;
    overflow: auto;
    padding-left: 0.9em;
    padding-right: 0.9em;
}

li a code {
    font-size: 0.865em;
}

strong, b {
    font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
    font-weight: 100;
    color: #000;
    line-height: 1.35;
}

blockquote {
    @include center;
    @include default-element-width;
    z-index: -1;
    margin-top: 1.35em;
    margin-bottom: 1.35em;
    background: #fafafd;
    border-left: 5px solid #5BBD72;
}

blockquote p {
    @include center;
    margin: 0;
    padding: 1em;
    font-size: 1em;
    overflow-x: auto;
    overflow-y: hidden;
    line-height: 1.3em;
    color: #888;
    width: $default-text-width-em + 8em!important;
}

.blockquote-center p { 
    text-align: center;
    line-height: 300%;
}

.blockquote-center strong {
    font-size: 1.313em;    
}

.blockquote-center strong:hover::before { 
    content: "《"; color: #5BBD72; 
}

.blockquote-center strong:hover::after { 
    content: "》"; color: #5BBD72; 
}

.blockquote-center {
    border-left: 0;
}

.blockquote-warning {
    background: #fef9e7;
    border-left: 5px solid #F2C61F;
}

.blockquote-error {
    background: #fadbd8;
    border-left: 5px solid #D95C5C;
}

.table-wrapper {
    @include default-element-width;
    margin-top: 1.350em;
    margin-bottom: 1em;
    margin-left: auto!important;
    margin-right: auto!important;
}

table {
}

@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {

    @mixin default-text-width {
        width: 15em !important;
    }

    @viewport {
        width: device-width;
    }

    body{
        font-size: 100% !important;
        font-family:Helvetica, Arial, Verdana, sans-serif;
        padding:5px;
    }

    div {
        clear:both!important;
        display:block!important;
        width:100%!important;
        float:none!important;
        padding:0;
    }

    pre {
        overflow-x: hidden;
    }

    .highlight {
        padding: 1em;
        padding-top: 2em;
    }

    .lang-label {
        width: 5em!important;
    }

    blockquote p {
        overflow: auto;
    }

    #header {
        position: absolute;
    }

    @font-face {
        font-family: "ProximaNova-Bold";
        src: url('../fonts/ProximaNovaRegular.otf');
    }
}

#article img {
    @include default-element-width;
    display: block;
    margin-top: 1.350em;
    margin-bottom: 1em;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #ABEBC6;
}

#article .block {
    @include center;
    @include default-element-width;
    display: block;
    margin-top: 1.350em;
    margin-bottom: 1em;
    border: 2px solid #ABEBC6;
}

#article .github-widget {
    @include center;
    @include default-element-width;
    display: block;
    margin-top: 1.350em;
    margin-bottom: 1em;
}

#article .gist {
    @include center;
    @include default-element-width;
    display: block;
    margin-top: 1.350em;
    margin-bottom: 1em;
}

.gist .blob-code-inner {
    font-family: Courier, 'Courier New', monospace !important;
}

#article .block img {
    border: 0 !important;
}

